<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="static/css/bootstrap.min.css"></link>
    <link rel="stylesheet" href="static/css/bootstrap-datetimepicker.css"></link>
    <script src="static/jquery-1.10.2.min.js"></script>
    <script src="static/bootstrap.min.js"></script>
    <script src="static/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>
</head>
<body>
<div class="row">
    <div class="col-lg-4">
        <form method="post" action="update" id="registForm" class="form-horizontal">
            <input name="id" th:value="${account.id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">账号类型：</label>
                <div class="col-sm-9">
                    <select class="form-control"  name="type.id" >
                        <option value="">请选择</option>
                        <!--<c:forEach items="${types}" var="t"><option value=${t.id}>${t.name}</option></c:forEach>-->
                        <option th:each="t:${types}" th:value="${t.id}" th:text="${t.name}" th:selected="${account.type !=null} and ${t.id}==${account.type.id}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="name" th:value="${account.name}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">公众号：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="account" th:value="${account.account}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建日期：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" th:value="${#dates.format(account.createdDate, 'yyyy-MM-dd')}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">认证：</label>
                <div class="col-sm-9">
                    <label class="control-label"><input type="radio" name="status" value="1" th:checked="${account.status==1}">已认证</label>
                    <label class="control-label"><input type="radio" name="status" value="0" th:checked="${account.status==0}">未认证</label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" id="btn" class="btn btn-success">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>